package com.mingqijia.gassafety.webserver.service;

import com.mingqijia.gassafety.authority.api.resp.config.DictionaryItemRespDTO;
import com.mingqijia.gassafety.db.entity.Dictionary;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mingqijia.gassafety.webserver.response.FuncAreaZoomResponse;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 字典项 服务类
 * </p>
 *
 * @author zhangfei
 * @since 2022-02-23
 */
public interface DictionaryService extends IService<Dictionary> {

    Dictionary selectValueByAlias(String mbpOrgCode);

    /**
     * 新工单系统
     * @param spId
     * @return
     */
    String selectNewAsstSpMapping(String spId);


    /**
     * 新工单系统
     * @param spId
     * @return
     */
    List<String> selectNewAsstSpMappingSpIds(String spId);

    String selectZJSpMapping(String spId);

    String getChannel();
    String getChannel(String spId);

    String getName(List<DictionaryItemRespDTO> list, String  value);

    Map<String,String> getFuncAreaZoom(String spId);

    //功能区域聚合
    Map<String,String> getFuncAreaZoomAggregation(String spId);
}
